package org.sixtynine.stock.dao;

/**
 * @author Thilan
 *
 */

import java.util.Date;
import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.DailyShareData;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public interface DailyShareDataDao extends AbstractDao<DailyShareData, Integer> {

	void saveDailyShareData(DailyShareData dailyShareData);

	List<DailyShareData> findDailyShareDatas(int companyId);

	List<DailyShareData> searchDailyShareData(int companyId, Date fromDate,
			Date toDate, String orderBy, String orderByName);

	public Page<DailyShareData> searchDailyShareData(int companyId,
			Date fromDate, Date toDate, String orderBy, String orderByName,
			GridPramDTO gridPramDTO);

	public void deleteDailyShareData(int companyId, Date fromDate, Date toDate);
}
